<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>12.24</title>
</head>
<body>
  <script>
    var num=10;
var obj={
    num:0,
    inner:{
        num:6,
        print:function(){
            console.log(this.num);
        }
    }
}
num=88;
obj.inner.print();
var fn=obj.inner.print;
   fn();
   (obj.inner.print)();
   (obj.inner.print=obj.inner.print)();
   //6 88 6 88
    </script>  
</body>
</html>